package com.ruoyi.net.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务-MTN Channel cross对象 busi_mtn_channel_subclient
 *
 * @author spn
 * @date 2025-02-10
 */
public class BusiMtnChannelSubclient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** client类型（1工作2保护） */
    @Excel(name = "client类型", readConverterExp = "1=工作2保护")
    @ApiModelProperty(value = "client类型")
    private String clientType;

    /** MTN Channel主键 */
    @Excel(name = "MTN Channel主键")
    @ApiModelProperty(value = "MTN Channel主键")
    private String mtnChannelId;

    /** 端口(生成方式：接口名/mtn-fgclient{number}) */
    @Excel(name = "端口(生成方式：接口名/mtn-fgclient{number})")
    @ApiModelProperty(value = "端口(生成方式：接口名/mtn-fgclient{number})")
    private String portName;

    /** Client端口(接口名) */
    @Excel(name = "Client端口(接口名)")
    @ApiModelProperty(value = "Client端口(接口名)")
    private String clientPortName;

    /** FgClientNum(从1开始编号) */
    @Excel(name = "FgClientNum(从1开始编号)")
    @ApiModelProperty(value = "FgClientNum(从1开始编号)")
    private String fgClientNum;

    /** 时隙(生成方式未知?) */
    @Excel(name = "时隙(生成方式未知?)")
    @ApiModelProperty(value = "时隙(生成方式未知?)")
    private String timeSlot;

    /** 设备映射ID(同FgClientNum) */
    @Excel(name = "设备映射ID(同FgClientNum)")
    @ApiModelProperty(value = "设备映射ID(同FgClientNum)")
    private String deviceMapperId;

    /** FgClient主键 */
    private String fgClientId;

    /** 条目状态（0未激活 1已激活） */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /** 删除标记（0正常 2已删除） */
    private String delFlag;

    public String getFgClientId() {
        return fgClientId;
    }

    public void setFgClientId(String fgClientId) {
        this.fgClientId = fgClientId;
    }

    /** 激活用户 */
    @Excel(name = "激活用户")
    @ApiModelProperty(value = "激活用户")
    private String activateUser;

    /** 激活时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "激活时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "激活时间")
    private Date activateTime;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setClientType(String clientType)
    {
        this.clientType = clientType;
    }

    public String getClientType()
    {
        return clientType;
    }
    public void setMtnChannelId(String mtnChannelId)
    {
        this.mtnChannelId = mtnChannelId;
    }

    public String getMtnChannelId()
    {
        return mtnChannelId;
    }
    public void setPortName(String portName)
    {
        this.portName = portName;
    }

    public String getPortName()
    {
        return portName;
    }
    public void setClientPortName(String clientPortName)
    {
        this.clientPortName = clientPortName;
    }

    public String getClientPortName()
    {
        return clientPortName;
    }
    public void setFgClientNum(String fgClientNum)
    {
        this.fgClientNum = fgClientNum;
    }

    public String getFgClientNum()
    {
        return fgClientNum;
    }
    public void setTimeSlot(String timeSlot)
    {
        this.timeSlot = timeSlot;
    }

    public String getTimeSlot()
    {
        return timeSlot;
    }
    public void setDeviceMapperId(String deviceMapperId)
    {
        this.deviceMapperId = deviceMapperId;
    }

    public String getDeviceMapperId()
    {
        return deviceMapperId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setActivateUser(String activateUser)
    {
        this.activateUser = activateUser;
    }

    public String getActivateUser()
    {
        return activateUser;
    }
    public void setActivateTime(Date activateTime)
    {
        this.activateTime = activateTime;
    }

    public Date getActivateTime()
    {
        return activateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("clientType", getClientType())
                .append("mtnChannelId", getMtnChannelId())
                .append("portName", getPortName())
                .append("clientPortName", getClientPortName())
                .append("fgClientNum", getFgClientNum())
                .append("timeSlot", getTimeSlot())
                .append("deviceMapperId", getDeviceMapperId())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("activateUser", getActivateUser())
                .append("activateTime", getActivateTime())
                .toString();
    }
}
